#content-area {
  --font-mono: var(--font-jetbrains-mono), ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* via Mintlify theme */

  h5 {
    font-weight: 500;
  }

  h6 {
    font-weight: 400;
  }
}

#feature-support-matrix-wrapper table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.75rem;
}

#feature-support-matrix-wrapper td,
#feature-support-matrix-wrapper th {
  padding: 0.25rem;
  text-align: center;
}

/* Left align Client column */
#feature-support-matrix-wrapper td:first-child,
#feature-support-matrix-wrapper th:first-child {
  text-align: left;
}



/*** Add automatic section numbers to headings and table of contents items ***/

#enable-section-numbers {
  display: none;
}

body:has(#enable-section-numbers) {
  #content-area,
  #table-of-contents {
    counter-reset: h2-counter h3-counter h4-counter h5-counter h6-counter;
  }

  #content-area h2[id],
  #table-of-contents li[data-depth="0"] {
    counter-set: h3-counter h4-counter h5-counter h6-counter;
  }

  #content-area h3[id],
  #table-of-contents li[data-depth="1"] {
    counter-set: h4-counter h5-counter h6-counter;
  }

  #content-area h4[id],
  #table-of-contents li[data-depth="2"] {
    counter-set: h5-counter h6-counter;
  }

  #content-area h5[id],
  #content-area h5,
  #table-of-contents li[data-depth="3"] {
    counter-set: h6-counter;
  }

  #content-area h2[id]::before,
  #table-of-contents li[data-depth="0"] a::before {
    counter-increment: h2-counter;
    content: counter(h2-counter) ". ";
  }

  #content-area h3[id]::before,
  #table-of-contents li[data-depth="1"] a::before {
    counter-increment: h3-counter;
    content: counter(h2-counter) "." counter(h3-counter) " ";
  }

  #content-area h4[id]::before,
  #table-of-contents li[data-depth="2"] a::before {
    counter-increment: h4-counter;
    content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
      " ";
  }

  #content-area h5[id]::before,
  #content-area h5::before,
  #table-of-contents li[data-depth="3"] a::before {
    counter-increment: h5-counter;
    content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
      "." counter(h5-counter) " ";
  }

  #content-area h6[id]::before,
  #content-area h6::before,
  #table-of-contents li[data-depth="4"] a::before {
    counter-increment: h6-counter;
    content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
      "." counter(h5-counter) "." counter(h6-counter) " ";
  }
}



/*** Page: schema reference ***/

#schema-reference {
  display: none;
}

body:has(#schema-reference) {
  .tsd-comment {
    :is(p, ul, ol):first-child {
      margin-top: 0;
    }

    :is(p, ul, ol):last-child {
      margin-bottom: 0;
    }
  }

  .tsd-signature {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5rem;

    /* Based on code blocks rendered by Mintlify **on the production site**. */
    margin: 1.25rem 0;
    border: 1px solid;
    border-color: light-dark(rgb(var(--gray-950)/.1), rgba(255, 255, 255, 0.1));
    border-radius: 1rem;
    padding: 1rem 0.875rem;

    a {
      font-weight: normal;
      border-bottom: none;
      text-decoration: underline;

      &:hover {
        text-decoration-thickness: 2px;
      }
    }

    a[href="#"] {
      pointer-events: none;
      color: inherit;
      text-decoration: none;
    }

    .tsd-signature-keyword {
      color: light-dark(rgb(207, 34, 46), #9CDCFE);
    }

    :is(.tsd-kind-interface, .tsd-kind-type-alias):not(.tsd-signature-type) {
      color: light-dark(rgb(149, 56, 0), #4EC9B0);
    }

    .tsd-signature-type:not(.tsd-kind-interface, .tsd-kind-type-alias) {
      color: light-dark(rgb(5, 80, 174), #DCDCAA);
    }
  }

  .tsd-member {
    margin: 1.25rem 0;

    [data-typedoc-h="3"] {
      margin: 0.5rem 0;

      font-family: var(--font-mono);
      font-weight: 700;

      scroll-margin-top: 8rem;
    }

    & > .tsd-comment,
    & > .tsd-type-declaration {
      margin-left: 1.25rem;
    }

    .tsd-type-declaration {
      [data-typedoc-h="4"] {
        display: none;
      }

      [data-typedoc-h="4"] + ul {
        margin-top: 0;
      }

      [data-typedoc-h="5"] {
        font-family: var(--font-mono);
        font-size: 0.875rem;
        font-weight: 500;

        width: fit-content;
        padding: 0.125em 0.5em;
        background-color: light-dark(rgb(var(--gray-100)/.5), rgb(255 255 255/.05));
      }
    }

    .tsd-anchor-icon,
    .tsd-tag,
    .tsd-signature,
    .tsd-sources {
      display: none;
    }
  }
}



/* Custom landing page styles */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 2rem;
  @media (min-width: 720px) {
    padding: 6rem;
    max-width: calc(1200px + 6rem);
    margin: 0 auto;
  }

  & > section + section {
    margin-top: 4rem;
  }

  color: light-dark(#111827, #e5e7eb);
  --highlight-color: #6366f1;
}

.play-button {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.play-button:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 35px solid #111827;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin-left: 8px;
}

.quick-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  font-size: 1rem;
}

.quick-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.quick-links a:hover {
  color: #111827;
  text-decoration: underline;
}


.quick-links .separator {
  color: #d1d5db;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: #f9fafb;
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.feature-description {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Section styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: light-dark(#111827, #e5e7eb);
}

/* Intro video section */
.intro-video-section {
  display: grid;
  gap: 2rem;

  .intro-logo img {
    width: 10rem;
    margin: 0 auto;
  }

  .intro-content {
    .intro-title {
      width: fit-content;
      margin: 0 auto;
      margin-bottom: 1.5rem;
      font-size: 2.5rem;
      font-weight: 700;
      line-height: 1.2;
      color: light-dark(#111827, #e5e7eb);
    }

    .intro-description {
      margin-bottom: 1.5rem;
      font-size: 1.125rem;
      line-height: 1.8;
      color: #6b7280;
    }
  }

  @media (min-width: 1080px) {
    grid-template-columns: 1fr 4fr;

    .intro-content .intro-title {
      width: 100%;
    }

    .intro-logo img {
      width: 100%;
    }
  }
}

.intro-video {
  width: 100%;
}

.intro-video .video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f9fafb;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Paths section */
.paths-section {
  padding: 4rem 2rem;
  background: #f9fafb;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.path-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  text-align: center;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

.path-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.path-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.path-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 1rem;
}

.path-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* How it works section */
.steps-container {
  display: grid;
  grid-template-columns: 2.5rem auto;
  max-width: 800px;
  gap: 1rem;

  @media (min-width: 1080px) {
    grid-template-columns: repeat(3, 2.5rem auto);
    max-width: 1200px;
  }

  .step-number, h3 {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .step-number {
    height: fit-content;
    border-radius: 50%;
    border: 3px solid;
    text-align: center;
    color: var(--highlight-color);
  }

  .step-content {
    margin: 0 0 1rem 0;
    @media (min-width: 1080px) {
      margin: 0 1rem 0 0;
    }

    h3 {
      margin-bottom: 0.25rem;
    }

    p {
      color: #6b7280;
    }
  }
}

/* Video text */

/* Stats section */
.ecosystem-section {
  max-width: 800px;

  .stats-grid {
    display: grid;
    gap: 1rem;

    @media (min-width: 720px) {
      & {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
      }

      .stat-card:last-child {
        grid-column: 1 / 3;
      }
    }

    .stat-card {
      padding: 2rem;
      border-radius: 24px;
      border: 3px solid #e5e7eb;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

      text-align: center;
      line-height: 1;
      font-weight: 800;
      color: var(--highlight-color);

      .stat-number {
        font-size: 4rem;
      }

      .stat-label {
        font-size: 1.5rem;
        text-decoration: 3px solid underline;
        text-underline-offset: 3px;
      }

      &:hover {
        .stat-number {
          text-shadow: 1px 1px 2px;
        }

        .stat-label {
          text-decoration-thickness: 5px;
        }
      }
    }
  }
}

/* Final CTA section */
.cta-buttons {
  display: flex;
  justify-content: center;

  .cta-primary {
    padding: 1rem 2.5rem;
    border-radius: 9999px;

    border: 6px solid var(--highlight-color);
    background: #0e0e10;
    color: white;

    font-size: 1.5rem;
    font-weight: 700;

    transition: all 0.3s;

    &:hover {
      background: var(--highlight-color);
    }
  }
}

.dark .intro-logo img {
  filter: invert(1);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .paths-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
}
